<template>
  <div class="flex flex-col gap-3 border-b px-6 py-3">
    <div class="flex items-center text-base leading-5">
      <div class="min-w-[126px] text-sm">Rating</div>
      <div class="">
        <StarRating :rating="ticket.feedback_rating" />
      </div>
    </div>
    <div class="flex items-center text-base leading-5">
      <div class="min-w-[126px] text-sm">Feedback</div>
      <div class="text-gray-800">
        {{ ticket.feedback_text }}
      </div>
    </div>
    <div
      v-if="ticket.feedback_extra"
      class="flex items-center text-base leading-5"
    >
      <div class="min-w-[126px] text-sm">Comment</div>
      <div class="text-gray-800">
        {{ ticket.feedback_extra }}
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import StarRating from "../StarRating.vue";

defineProps({
  ticket: {
    type: Object,
    required: true,
  },
});
</script>

<style scoped></style>
